#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include"1.h"


int main(void)
{
	int num1 = 15;
	int num2 = 10999;
	int num3 = 999;
	char c;
	char *str = NULL;
	int len = 0;
	int size = 16;

	printf("%d 和 %d 的最大公约数是：%d\n", num1, num2, get_gcd(num1, num2));
	
	printf("%d %d %d 的最大值为%d\n", num1, num2, num3, get_max(num1, num2, num3));

	printf("%d %c %d = %f\n", num1, '+', num2, op(num1, num2, '+'));
	
	str = malloc(size);
	do{
		if(size < len){
			size*=2;
			str = realloc(str, size);
		}
		c = getchar();
		if(c == '\n')
			c = '\0';
		*(str + len++) = c;
	}while(c != '\0');
	puts(str);
	reverse_str(str,strlen(str));
	puts(str);
	free(str);
	str = NULL;
	
	printf("%d\n", reverse_num(13274));


	return 0;
}


